package com.serkol.ams.module.sys.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.serkol.ams.module.sys.entity.SysRole;
import com.serkol.ams.module.sys.service.SysRoleService;
import com.serkol.ams.module.sys.mapper.SysRoleMapper;
import com.serkol.ams.vo.MyPage;
import org.springframework.stereotype.Service;

/**
* @author Hesen
* @description 针对表【sys_role(角色表)】的数据库操作Service实现
* @createDate 2024-05-27 19:04:34
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{

    @Override
    public MyPage queryPage(int page, int size) {
        LambdaQueryWrapper<SysRole> wrapper = new LambdaQueryWrapper<>();
        Page<SysRole> myPage = new Page<>(page, size);
        Page<SysRole> sysRolePage = this.baseMapper.selectPage(myPage, wrapper);
        return MyPage.parsePage(sysRolePage);
    }
}




